
// 自动生成模板SysStores
package system
import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
	"time"
)

// 门店信息 结构体  SysStores
type SysStores struct {
    global.GVA_MODEL
  StoreCode  *string `json:"store_code" form:"store_code" gorm:"comment:门店编码（唯一，如：PHARMACY001）;column:store_code;" binding:"required"`  //编码
  StoreName  *string `json:"store_name" form:"store_name" gorm:"comment:门店名称（如：XX大药房旗舰店）;column:store_name;" binding:"required"`  //名称
  StoreType  *int `json:"store_type" form:"store_type" gorm:"comment:门店类型：1-直营，2-加盟，3-合作;column:store_type;" binding:"required"`  //类型
  BusinessLicense  *string `json:"business_license" form:"business_license" gorm:"comment:营业执照编号;column:business_license;" binding:"required"`  //执照编号
  LicenseStartDate  *time.Time `json:"license_start_date" form:"license_start_date" gorm:"comment:营业执照起始日期;column:license_start_date;" binding:"required"`  //执照起始
  LicenseEndDate  *time.Time `json:"license_end_date" form:"license_end_date" gorm:"comment:营业执照到期日期;column:license_end_date;" binding:"required"`  //执照到期
  PharmacyLicense  *string `json:"pharmacy_license" form:"pharmacy_license" gorm:"comment:药品经营许可证编号;column:pharmacy_license;" binding:"required"`  //药证编号
  PharmacyLicenseStart  *time.Time `json:"pharmacy_license_start" form:"pharmacy_license_start" gorm:"comment:药品经营许可证起始日期;column:pharmacy_license_start;" binding:"required"`  //药证起始
  PharmacyLicenseEnd  *time.Time `json:"pharmacy_license_end" form:"pharmacy_license_end" gorm:"comment:药品经营许可证到期日期;column:pharmacy_license_end;" binding:"required"`  //药证到期
  Province  *string `json:"province" form:"province" gorm:"comment:所在省份;column:province;" binding:"required"`  //省份
  City  *string `json:"city" form:"city" gorm:"comment:所在城市;column:city;" binding:"required"`  //城市
  District  *string `json:"district" form:"district" gorm:"comment:所在区/县;column:district;" binding:"required"`  //区县
  Address  *string `json:"address" form:"address" gorm:"comment:详细地址;column:address;" binding:"required"`  //地址
  Longitude  *float64 `json:"longitude" form:"longitude" gorm:"comment:经度（用于地图定位）;column:longitude;"`  //经度
  Latitude  *float64 `json:"latitude" form:"latitude" gorm:"comment:纬度（用于地图定位）;column:latitude;"`  //纬度
  ContactPerson  *string `json:"contact_person" form:"contact_person" gorm:"comment:联系人;column:contact_person;" binding:"required"`  //联系人
  ContactPhone  *string `json:"contact_phone" form:"contact_phone" gorm:"comment:联系电话;column:contact_phone;" binding:"required"`  //电话
  BusinessHours  *string `json:"business_hours" form:"business_hours" gorm:"comment:营业时间（如：08:00-22:00）;column:business_hours;"`  //营业时间
  StoreStatus  *int `json:"store_status" form:"store_status" gorm:"comment:门店状态：1-营业中，2-停业，3-装修，4-已注销;column:store_status;" binding:"required"`  //状态
  UserId  *int `json:"user_id" form:"user_id" gorm:"comment:店长ID（关联用户表）;column:user_id;"`  //店长ID
  Remark  *string `json:"remark" form:"remark" gorm:"comment:备注信息;column:remark;"`  //备注
}


// TableName 门店信息 SysStores自定义表名 sys_stores
func (SysStores) TableName() string {
    return "sys_stores"
}





